package com.xinghen.security.browser;

import com.xinghen.security.core.authentication.FormAuthenticationConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @author xinghen
 * @ClassName: BrowserSecurityConfig
 * @Package: com.xinghen.security.browser
 * @Description 浏览器环境下安全配置主类
 * @create 2018/04/08 21:47
 */
@Configuration
public class BrowserSecurityConfig extends WebSecurityConfigurerAdapter {

    @Autowired
    private FormAuthenticationConfig formAuthenticationConfig;

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        formAuthenticationConfig.configure(http);
    }
}
